#include<stdio.h>
#include<stdlib.h>
#include "linkqueue.h"

int main(){
	linkqueue * lq = queue_create();

	int data;
	while(scanf("%d", &data)){
		enqueue(lq, data);
	}

	while(!queue_empty(lq)){
		printf("queue out: %d \n", dequeue(lq));
	}

	queue_free(lq);
	return 0;
}
